import { Button, NavBar } from 'antd-mobile'
import React from 'react'
import { useNavigate } from 'react-router-dom'

function Detail() {
    const navigate=useNavigate();
    const add=()=>{
        navigate('/addlist')
    }
  return (
    <div>
      <NavBar onBack={()=>navigate(-1)}>乘客列表</NavBar>
      <div style={{width:"100%", height:"200px", marginTop:"10px", background:"#ccc", borderRadius:"10px"}}>
        <div>
            <Button color='primary' style={{marginRight:"50px"}} onClick={()=>add()}>+新增乘客</Button>
            <Button color='primary'>+添加微信好友</Button>
        </div>
      </div>
    </div>
  )
}

export default Detail
